package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

@TableName("jiaoxuexinxi")
public class JiaoxuexinxiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public JiaoxuexinxiEntity() {
		
	}
	
	public JiaoxuexinxiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@TableId
	private Long id;

	private String kechenghao;

	private String kechengming;

	private String kechengxiangqing;

	private Integer kechengshizhang;

	private String jiaoshixingming;

	private String zhaopian;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setKechenghao(String kechenghao) {
		this.kechenghao = kechenghao;
	}

	public String getKechenghao() {
		return kechenghao;
	}

	public void setKechengming(String kechengming) {
		this.kechengming = kechengming;
	}

	public String getKechengming() {
		return kechengming;
	}

	public void setKechengxiangqing(String kechengxiangqing) {
		this.kechengxiangqing = kechengxiangqing;
	}

	public String getKechengxiangqing() {
		return kechengxiangqing;
	}

	public void setKechengshizhang(Integer kechengshizhang) {
		this.kechengshizhang = kechengshizhang;
	}

	public Integer getKechengshizhang() {
		return kechengshizhang;
	}

	public void setJiaoshixingming(String jiaoshixingming) {
		this.jiaoshixingming = jiaoshixingming;
	}

	public String getJiaoshixingming() {
		return jiaoshixingming;
	}
	 void setZhaopian(String zhaopian) {
		this.zhaopian = zhaopian;
	}

	public String getZhaopian() {
		return zhaopian;
	}

}
